Integrate MS Teams Via Admin Console

Before you can complete the actions in the Admin Console, you will need to complete some actions in Azure AD.

Setting up the Connection between Capture2Proposal and Azure

These are notes for how to allow the C2P MVC app to integrate with users' MS Teams and Outlook accounts. This allows the C2P app to create Teams rooms from the Activity tab within each Company Pipeline opportunity. Microsoft Teams available in the standard commercial cloud, or in the US National secure cloud (GCCH).

Graphical user interface, application  Description automatically generated

  1. Add the C2P app to Azure AD: Register C2P with the Azure AD v2.0 endpoint - Microsoft Graph | Microsoft Docs
    1. Go to Azure Active Directory g click App Registrations g New Registration
    2. Use Capture2Proposal as the name of the app and select the Single Tenant option under “Who can use this application or access this API?”

      Graphical user interface, text, application, email  Description automatically generated
    3. Enter https://app.capture2proposal.us/Account/OAuthResponse as the Web redirect path g click Register


    4. After registering the App, it will open your new App registration (you can navigate back to this page at any time by going to the Azure Portal and selecting Azure Active Directory → App registrations → Capture2Proposal)
  2. In the Authentication page for your new app registration:
    1. Scroll down to select the tokens you would like to be issued by the authorization endpoint:
      1. Check the option for ID tokens (used for implicit and hybrid flows)
      2. Uncheck Access tokens (used for implicit flows).
        Graphical user interface, text, application, email  Description automatically generated
    2. Scroll down to Advanced Settings and confirm “Allow public client flows” is set to NO
      Graphical user interface, text, application, email  Description automatically generated
    3. Click Save at the top of the page (no other settings are necessary here)
  3. Click the Certificates & Secrets page
    1. Click “New client secret”
    2. Enter any description you would like
    3. Enter an expiration you deem appropriate, keeping in mind you will need to copy new keys into the C2P Admin Console when the expiration occurs
    4. Click the Add button
      Graphical user interface, application  Description automatically generated
    5. Copy/paste the value somewhere like Notepad (it will be hidden permanently in the Portal after a few minutes)

  4. Go back to the Overview page on your app registration and copy/paste the Application (client) ID and Directory (tenant) ID to your notepad
    Graphical user interface, application  Description automatically generated
  1. Login to the C2P app in a new web browser window and log in (you may close the Azure portal if desired)
  2. Open the Capture2Proposal Admin Console → Integration → Microsoft Teams (you must be a licensed BD Manager or Admin).
    1. For Commercial Public Cloud or GCC Low Side, use the Commercial Public Cloud row for your credentials. If you are uncertain which version you have, look at how you access azure. If you access AAD via portal.azure.com, then you are probably using commercial MS Teams.
    2. For GCC High, enter your credentials in the row for US National GCCH Cloud. If you log in to azure using portal.azure.us, you are probably using GCCH.
    3. If you enable access in both versions of Teams, GCCH will be the default for all new activites.

  3. Click the green pencil icon to enter the IDs copied above from Azure here
    1. Enter the Directory (tenant) ID from Azure into Azure Tenant ID
    2. Enter the Application (client) ID from Azure into Client Application ID
      1. Enter the Client Secret value from step 3(e) into Client Application Secret g click the disk icon to save
        **NOTE** The “Client Application Secret” is like a password. Do not store it anywhere after entering it into your C2P configuration. C2P will store this data in secure Key Vault storage in Azure to ensure it is safe. If you ever need to refresh your client secret you may generate a new one in Azure and enter the new one in the C2P Admin Console. This may require users who are currently logged in to C2P to re-authenticate.
  4. Return to the Azure Portal g Click API permissions g Add a Permission g Microsoft Graph g Delegated Permissions
    Graphical user interface, application  Description automatically generated
    Repeat the steps above to search and add each individual permission below for the API:
    1. Calendars.ReadWrite
    2. Channel.Create
    3. Channel.ReadBasic.All
    4. ChannelMember.ReadWrite.All
    5. Files.ReadWrite.All
    6. Group.ReadWrite.All
    7. Mail.Send
    8. Team.ReadBasic.All
    9. TeamMember.ReadWrite.All
    10. User.Invite.All
    11. User.Read
    12. User.ReadBasic.All

      **NOTE** All permissions granted to the application will be Delegated, meaning that the logged in user may only use the C2P app to do things they are permitted to do in their Teams environment. This means, that if a user is not permitted to create a Team, or invite a guest to a Team, some feature may not work as designed to preserve the security of your Teams environment.
  5. If you see the permissions alerts shown above, click the “Grant admin consent for ____” button g Yes to resolve and grant these permissions for the App Registration. If you do not see the button to grant admin consent, contact the Azure administrator within your organization to assist.

 

If you're still having issues after following these instructions, check out our MS Teams Integration Troubleshooting page for more help.